<?php
    get_header();
    $lang = qtrans_getLanguage();
?>
    
      <div id="context">
        <h2><?php if($lang=="en") echo "Recruitment"; else echo "Tuyển Dụng"; ?></h2>
        <ul>
        <?php
            $args = array(
                'numberposts'     => 4,
                'category'        => 3,
                'orderby'         => 'post_date',
                'order'           => 'DESC',
                'post_type'       => 'post',
                'post_status'     => 'publish' );
            $myposts = get_posts( $args );
            wp_reset_query();
            foreach($myposts as $post):    
        ?>        
          <li>
            <h4><?php echo __($post->post_title); ?></h4>
            <p><?php if($lang=="en") echo "Deadline To Apply"; else echo "Hạn chót nộp hồ sơ"; ?>: <?php echo get_post_meta($post->ID, 'wpcf-date', true); ?></p>
            <a href="<?php echo get_permalink($post->ID); ?>" title="(<?php if($lang=="en") echo "Click to view detail"; else echo "Xem chi tiết"; ?>)" class="lnk-view">(<?php if($lang=="en") echo "Click to view detail"; else echo "Xem chi tiết"; ?>)</a> </li>
        <?php
            endforeach;
        ?>
        </ul>
      </div>
      <!--EOF context -->
      <div id="content">
        <?php
            $my_id = 14;
            $post_id_14 = get_post($my_id);
            wp_reset_query();
            $image = wp_get_attachment_image_src(get_post_thumbnail_id($post_id_14->ID), 'full');
        ?>
        <h2><?php echo __($post_id_14->post_title); ?></h2>
        <p class="cover-img"><img src="<?php echo $image[0]; ?>" alt="" /></p>
        
        <p><?php echo __($post_id_14->post_content); ?> <a href="<?php echo get_permalink(2) ?>" title="(<?php if($lang=="en") echo "View more"; else echo "Xem tiếp"; ?>)" class="lnk-view-more">(<?php if($lang=="en") echo "View more"; else echo "Xem tiếp"; ?>)</a></p>
      </div>
      <!--EOF content --> 
<?php
    get_footer();
?>    